<%@page import="doantotnghiep.modelDTO.StaffDTO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	$(function() {
		$("#importedDate").datepicker();
	});
</script>
</head>
<body>
<%
	HashMap<String, Object> stafftModel = (HashMap<String, Object>) request
			.getAttribute("staffModel");
%>
<div align="center">
	<br> <br> <br>
	<h1 style="color: blue;">THÊM MỚI PHIẾU NHẬP HÀNG</h1>
	<form:form method="POST" commandName="ImportedMedicamentDTO">
		<table border="1">
			<tr>
				<td><form:label path="importedDate">Ngày nhập hàng:</form:label></td>
				<td><form:input id="importedDate" path="importedDate"
						value="${importedDate}"></form:input></td>
				<span id="importdate-error" style="color:red"> </span>
			</tr>
			
			<tr>
				<td><form:label path="staff_ID">Nhân viên lập đơn:</form:label></td>
				<td><form:select path="staff_ID" value="${room_ID}">
						<%
							if (stafftModel != null) {
										ArrayList<StaffDTO> staffDTOs = (ArrayList<StaffDTO>) stafftModel
												.get("staffDTOs");
										if (staffDTOs != null) {
											for (int i = 0; i < staffDTOs.size(); i++) {
						%>
						<option value="<%=staffDTOs.get(i).getId()%>"><%=staffDTOs.get(i).getFullName()%></option>
						<%
							}
										}
									}
						%>
					</form:select></td>
			</tr>

		</table>
	</form:form>

</div>
</body>

